package com.hwj.exception;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 自定义异常
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CustomAuthException extends RuntimeException {
    private Integer code=-1;//该-1表示通用的业务异常
    private String msg;

    public CustomAuthException(String msg) {
        super();
        this.msg = msg;
    }
}
